using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace Perovich.GameObjects.Controls.Shapes
{

    /// <summary>
    /// The <see cref="TextureRectangle"/> class is a rectangle that is drawn with a custom texture.
    /// </summary>
    public class TextureRectangle : RectangleBase
    {
        /// <summary>
        /// Constructs a new instance of the <see cref="TextureRectangle"/> class.
        /// </summary>
        /// <param name="game"><see cref="Perovich.GameObjects.Interfaces.ICanHoldComponents"/> instance that this <see cref="DrawableComponent"/> will be constructed for.</param>
        public TextureRectangle(Interfaces.ICanHoldComponents game)
            : base(game)
        {
            ForegroundColor = Color.White;
        }


        /// <summary>
        /// Gets or sets the <see cref="Texture2D"/> used to draw this <see cref="TextureRectangle"/>.
        /// </summary>
        public Texture2D Texture
        {
            get
            {
                return LineTex;
            }
            set
            {
                LineTex = value;
            }
        }

    }
}
